<template>
  <div>
    <div class="clue-title line_height_60" :class="isMobile() ? 'font_28' : 'font_36'">
      <span class="clue_label" v-if="label">{{ label }}</span>
      <span class="clue_label_doc height_40 width_5 m_l_10 m_r_10" v-if="label"></span>
      <span>{{ title }}</span></div
    >
    <div class="point w_70 h_4" v-if="borderVail != false"></div>
  </div>
</template>
<script setup lang="ts">
  import { defineProps, PropType } from 'vue'
  import { isMobile } from '@/utils'
  defineProps({
    title: {
      type: String as PropType<string>,
      require: true,
      default: () => '',
    },
    label: {
      type: String as PropType<string>,
      default: () => '',
    },
    borderVail: {
      type: Boolean as PropType<boolean>,
      default: () => true,
    },
  })
</script>
<style scoped lang="less">
  .clue-title {
    font-weight: 700;
    text-align: center;
  }
  .point {
    background: linear-gradient(270deg, #2f57f7 0%, #6ba2ff 100%);
    margin: 0 auto;
  }
  .clue_label {
    color: rgba(27, 103, 255, 1);
  }
  .clue_label_doc {
    background: #000000;
    display: inline-block;
    vertical-align: sub;
  }
</style>
